﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xpom_Xpum__Browser_Integrator
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Received Arguments:");
            Console.WriteLine(args[0]);
            Console.WriteLine(args[1]);
            Console.WriteLine(args[2]);

            if (args.Length > 0)
            {
                switch (args[0])
                {
                    case "-crx":
                        Facade.ProcessPackCRX(args);
                        break;
                    case "-zip":
                        Facade.ProcessPackZIP(args);
                        break;
                    case "-run":
                        Facade.ProcessRun(args);
                        break;
                    default:
                        Console.WriteLine("Error - Unknown 1st command line argument.");
                        Console.ReadKey();
                        break;
                }
            }
            else
            {
                Console.WriteLine("Error - Command line required.");
                Console.ReadKey();
            }
        }
    }
}
